package cn.yhbk.web.modules.manager.Mapper;

import cn.yhbk.web.modules.manager.Pojo.Entity.TbScholarShipType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TbScholarShipTypeMapper extends BaseMapper<TbScholarShipType> {

    @Select("select * from tb_scholarship_type")
    List<TbScholarShipType> queryScholarShipType();

    @Select("select id, name, type_id from tb_scholarship where type_id = #{scholarshipType}")
    List<TbScholarShipType> queryScholarShipTypeByType(Long scholarshipType);
}
